﻿using System.Configuration;
using System.Reflection;

namespace UcAsp.Net.DALFactory
{
    public class CacheAccess
    {
        private static readonly string path = ConfigurationManager.AppSettings["Cache"];
        public static UcAsp.Net.Interface.ICache CreateCache()
        {
            string className = path + ".SpaceCache";
            return (UcAsp.Net.Interface.ICache)Assembly.Load(path).CreateInstance(className);
        }
    }
}
